package FreshmenTest00;

import java.util.*;

/**
 * Enjoy programming!!!
 * Time: 2021/10/31 -  16:01
 */
public class Array {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);//收取二维数组的循环待优化
        for (int b = 0; b < 2; b++) {
            int c = in.nextInt();
            boolean flag = true;
            int[][] p = new int[2][c];//数组p用来存储防守人站位
            for (int r = 0, i = 0; i < c; i++) {//收数组p[0]
                p[r][i] = in.nextInt();
            }
            for (int r = 1, i = 0; i < c; i++) {//收数组p[1]
                p[r][i] = in.nextInt();
            }
            for (int r1 = 0, i1 = 0; i1 < c; i1++)
                if ((1 == p[r1][i1] && 1 == p[r1 + 1][i1]) || 1 == p[1][c - 1]) {
                    flag = false;
                    break;
                }
            if (flag)
                System.out.println("xiaodai yyds!!");
            else
                System.out.println("xiaodai is upset!!");

        }
    }
}
